package com.briup.es.domain.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
public class OrderPayDTO implements Serializable {
    /**
     * 订单id
     */
    @NotBlank(message = "支付时，订单id必须提供")
    private String orderId;
    /**
     * 支付成功后的回调路径
     */
    @NotBlank(message = "必须提供支付成功后的回调路径")
    private String pathUrl;
    /**
     * 订单金额
     */
    @NotNull(message = "订单金额必须提供")
    @Min(value = 0,message = "本订单金额无效")
    private Double totalPrice;
}
